


<extend name="Public:layout"/>
<block name="content">
<style type="text/css">

    .er{color:red;}
</style>
<div class="row-fluid sortable ui-sortable">
                <div class="box span12">
                    <div data-original-title="" class="box-header">
                        <h2><i class="halflings-icon white edit"></i><span class="break"></span>权限添加</h2>
                        <div class="box-icon">
                            <a class="btn-setting" href="#"><i class="halflings-icon white wrench"></i></a>
                            <a class="btn-minimize" href="#"><i class="halflings-icon white chevron-up"></i></a>

                        </div>
                    </div>
                    <div class="box-content">
                        <form id="signupForm" enctype="multipart/form-data" class="form-horizontal" action="" method="post" >
                            <fieldset>

                              <div class="control-group">
                                    <label for="appendedInput" class="control-label">权限名称</label>
                                    <div class="controls">
                                      <div class="input-append">
                                        <input type="text" size="16"  name="title">
                                      </div>

                                    </div>
                              </div>

                              <div class="control-group">
                                    <label for="appendedInput" class="control-label">权限规则</label>
                                    <div class="controls">
                                      <div class="input-append">
                                        <input type="text" size="16"   name = "name">
                                      </div>

                                    </div>
                              </div>


                              <div class="control-group">
                                <label class="control-label">状态</label>
                                <div class="controls">
                                      <label class="radio">
                                        <input type="radio"  value="1" id="optionsRadios1" name="status" required>启用
                                      </label>

                                      <label class="radio">
                                        <input type="radio" value="0" id="optionsRadios2" name="status">禁用
                                      </label>
                                </div>
                              </div>
                               <div class="control-group">
                                <label for="selectError" class="control-label">所属模块</label>
                                <div class="controls">
                                  <select data-rel="chosen" id="selectError" style="" class="chzn-done" name="pid">
                                    <option value="0">请选择</option>
                                    <foreach name="rule" item="v">
                                     <option value="{$v.id}">{$v.name}</option>
                                    </foreach>
                                  </select>
                                </div>
                              </div>
                              <div class="control-group">
                                <label class="control-label">权限区域</label>
                                <div class="controls">
                                      <label class="radio">
                                        <input type="radio"  value="1" id="optionsRadios1" name="is_home" required>前台权限
                                      </label>

                                      <label class="radio">
                                        <input type="radio" value="0" id="optionsRadios2" name="is_home">后台权限
                                      </label>
                                </div>
                              </div>


                              <div class="form-actions">
                                <button class="btn btn-primary submit" type="submit">提交</button>

                              </div>
                            </fieldset>
                        </form>
                    </div>
                </div><!--/span-->

            </div>


</block>







<block name="js">

<script src="__PUBLIC__js/jquery.validate.min.js"></script>
    <script type="text/javascript">



    </script>
</block>